<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>My JSP 'postview_id.jsp' starting page</title>
    
  </head>
  <body>
   		<center>
   		<h3>Post 信息</h3>
   		<div align="center">
   			<div align="center">
   				<p><s:property value="post.headline"/></p>
   			</div>
   			<div align="center">
   			<s:property value="post.content" escape="false"/>
   			</div><br />
   			<div align="center">
   			<s:property value="post.posttime"/>
   			</div><br />
   			<div align="center">
   			<s:property value="user.userName"/>
   			</div><br />
   			<div align="center">
   			<s:property value="post.replynum"/>
   			</div><br />
   			<div align="center">
   			<s:property value="post.submit"/>
   			</div>
   		</div>
   		<h3>用户信息</h3>
   		<div>
   			<div align="center"><s:property value="#session.UserName.userName"/></div><br/>
   			<div align="center"><img width="180" height="180" src="<s:property value="#session.UserName.headImage"/>"/></div><br/>
   			<div align="center"><s:property value="#session.UserName.usertype"/></div><br/>
   		</div>
   		</center>
  </body>
</html>
